/**
 * 
 */
package com.tomagency.cyberlab.client.events;

import java.util.Map;

import com.google.gwt.user.client.ui.HasText;

/**
 * @author gfr
 *
 */
public class ObjectEventImpl implements ObjectEvent {

	private int eventType;
	private int functionCode;
	private int listRowNr;
	private int objectId;
	private Map<String, String> properties;
	private HasText messageWidget;

	/**
	 * @see com.tomagency.cyberlab.client.events.ObjectEvent#getEventType()
	 */
	@Override
	public int getEventType() {
		return eventType;
	}

	/**
	 * @see com.tomagency.cyberlab.client.events.ObjectEvent#getFunction()
	 */
	@Override
	public int getFunctionCode() {
		return functionCode;
	}


	/**
	 * @see com.tomagency.cyberlab.client.events.ObjectEvent#getObjectId()
	 */
	@Override
	public int getObjectId() {
		return objectId;
	}

	/**
	 * @see com.tomagency.cyberlab.client.events.ObjectEvent#getProperties()
	 */
	@Override
	public Map<String, String> getProperties() {
		return properties;
	}

	/**
	 * @see com.tomagency.cyberlab.client.events.ObjectEvent#setEventType(int)
	 */
	@Override
	public void setEventType(int eventType) {
		this.eventType=eventType;
	}

	/**
	 * @see com.tomagency.cyberlab.client.events.ObjectEvent#setFunction(int)
	 */
	@Override
	public void setFunctionCode(int functionCode) {
		this.functionCode=functionCode;
	}


	/**
	 * @see com.tomagency.cyberlab.client.events.ObjectEvent#setObjectId(int)
	 */
	@Override
	public void setObjectId(int id) {
		this.objectId=id;
	}

	/**
	 * @see com.tomagency.cyberlab.client.events.ObjectEvent#setProperties(java.util.Map)
	 */
	@Override
	public void setProperties(Map<String, String> properties) {
		this.properties=properties;

	}

	@Override
	public HasText getMessageWidget() {
		return messageWidget;
	}

	@Override
	public void setMessageWidget(HasText messageWidget) {
		this.messageWidget=messageWidget;
		
	}

}
